import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [{
    path: '/',
    redirect: '/home',
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('@/views/home')
  },
  {
    path: '/me',
    name: 'me',
    component: () => import('@/views/me')
  },
  {
    path: '/history',
    name: 'history',
    component: () => import('@/views/history')
  }, {
    path: '/monkey',
    name: 'monkey',
    component: () => import('@/views/monkey')
  },
  {
    path: '/product',
    name: 'product',
    component: () => import('@/views/product')
  }, {
    path: '/journalism',
    name: 'journalism',
    component: () => import('@/views/journalism')
  }, {
    path: '/notice',
    name: 'notice',
    component: () => import('@/views/notice')
  }, {
    path: '/details',
    name: 'details',
    component: () => import('@/views/details')
  }, {
    path: '/video',
    name: 'video',
    component: () => import('@/views/video')
  }
]

const router = new VueRouter({
  routes
})

export default router